package com.polymorphic.dynamic;

/**
 * @Author 小闽
 * @Date 2024/8/12 18:30
 * @PackageName: com.polymorphic.dynamic
 * @ClassName: B
 * @Description: B类
 * @Version 1.0
 */
public class B extends A {
    public int i = 20;
    public int sum(){
        return i + 20;
    }
    public int getI(){
        return i;
    }
    public int sum1(){
        return i +10;
    }


}
